<template>
    <view class="a-page">
        <touch-listen @move="log">
            <view class="p-touch-listen">
                监听区域
            </view>
        </touch-listen>
    </view>
</template>

<script>
    import TouchListen from "../../components/touch-listen";

    export default {
        components: {TouchListen},
        data() {
            return {}
        },
        methods: {
            log(direction) {
                console.log('移动', direction);
            }
        },
    }
</script>

<style scoped lang="less">
    .p-touch-listen {
        background-color: bisque;
        width: 100%;
        height: 50vh;
    }
</style>
